home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 June / June 99, disk1,APC461.iso / workshop / other / litres.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1999-04-06  |  746 b   |  25 lines

  1. // **************************************************************
  2. // litres.cpp
  3. // Example program for Simple C++
  4. //
  5. // (c) 1999 Emmenjay Consulting Pty Ltd                          
  6. //                                                               
  7. // History                                                       
  8. // 06/04/99 MJS  Initial Coding.                                 
  9. //                                                               
  10. // **************************************************************
  11.  
  12. #include <iostream>
  13.  
  14. int main()
  15. {
  16.   int i;
  17.  
  18.   std::cout << "Gallons\tLitres\n";
  19.   std::cout << "-------\t------\n";
  20.   for (i=1; i<=10; i++)
  21.     std::cout << i << "\t" << i*3.785411784 << '\n';
  22.  
  23.   return 0;
  24. }
  25.